package com.lyh.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lyh.common.enums.RebateRuleEnum;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 用户报单返佣对象 lyh_user_rebates
 * 
 * @author ruoyi
 * @date 2023-06-01
 */
@Data
@TableName("lyh_user_rebates")
public class UserRebates extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 返佣规则 */
    @Excel(name = "返佣规则")
    private RebateRuleEnum rebateRule;

    /** 返佣时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "返佣时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rebateTime;

    /** 剩余总每天待返佣金额 */
    @Excel(name = "剩余总每天待返佣金额")
    private BigDecimal residueRebate;

    /** 所消耗总资产通证数量 */
    @Excel(name = "所消耗总资产通证数量")
    private BigDecimal assetEvidenceNum;

    /** 返佣规则为高级时对应的下级userId */
    @Excel(name = "返佣规则为高级时对应的下级userId")
    private Long lowUserId;

    private Long memberPurchaseInfoId;

}
